/**
 * Created by yy on 2017/7/31.
 */
$(function(){
    var ctx0 = {};
    var defaultResume = '';
    var url = server + '/server/resume/search/byUser.json';
    $.post(url, function(data){
        if (data.code == 12000) {
            alert("登录超时");
            window.location.replace('../../login.html');
        }
        ctx0 = data;
        var url2 = server + '/server/resume/showDefault.json';
        $.post(url2, function(data){
            defaultResume = data.data;
            ctx0.defaultResume = defaultResume;
            var ctx = template('./resume-list-tpl',ctx0);
            $("#resume-list").html(ctx);
        });
    });


});
